package com.addplus.townmall.server.api.model.town;

import com.baomidou.mybatisplus.annotation.TableName;
import com.addplus.townmall.server.api.model.base.BaseRestModel;
import com.baomidou.mybatisplus.annotation.TableField;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 商城用户积分关联表
 * </p>
 *
 * @author zhangjiehang
 * @since 2018-08-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("member_integral")
public class MemberIntegral extends BaseRestModel {

    private static final long serialVersionUID = 1L;

    /**
     * 关联用户主键id
     */
    @TableField("member_id")
    private Integer memberId;
    /**
     * 当前积分数量
     */
    @TableField("integral_now")
    private Integer integralNow;
    /**
     * 历史积分数量
     */
    @TableField("integral_history")
    private Integer integralHistory;
    /**
     * 消费积分数量
     */
    @TableField("integral_consume")
    private Integer integralConsume;
    /**
     * 获取积分数量
     */
    @TableField("integral_obtain")
    private Integer integralObtain;
    /**
     * 过期积分数量
     */
    @TableField("integral_expired")
    private Integer integralExpired;


}
